/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package fr.ove.openmath.jome.formaters.om;

/**
 *
 * @author Mr.Sam
 */
import fr.ove.utils.CachingResourcesManager;

/**
* The resources manager for the rendering formula.<BR>
* The different resources take the following syntax : (see the resources files for more details)
*       modelId = formaterName:cdName:symbolName
*
* @author © 2000 DIRAT Laurent
* @version 2.0  07/01/2000
*/
public class OpenMathFormaterResoucesManager extends CachingResourcesManager {
    /**
    * The Constructor.
    * @param resourcesName the name of the resources file.
    */
    public OpenMathFormaterResoucesManager(String resourcesName) {
        super(resourcesName);
    }
    
    /**
    * Returns the formater name of the specified property.
    * @param property the specified property
    */
    public String getFormater(String property) {
        return accessResource(property, 0);
    }
    
    /**
    * Returns the cd name of the specified property.
    * @param property the specified property
    */
    public String getCdName(String property) {
        return accessResource(property, 1);        
    }
    
    /**
    * Returns the symbol name of the specified property.
    * @param property the specified property
    */
    public String getSymbolName(String property) {
        return accessResource(property, 2);        
    }
}
